// app/service/tag.js

const Service = require('egg').Service;

class TagService extends Service {
    async getTags() {
        const { ctx } = this
        console.log('getTags')
        let tagList = await ctx.model.Article.distinct('tagList')
        console.log(tagList)
        return tagList
    }
}

module.exports = TagService;